
MAIN = converter
CC = g++
FLAGS = -Wall

DEBUG_ARGS = -d /home/carlo/Agilent /home/carlo/Plain/plaintexts.txt /home/carlo/Output/out4.bin

LIBDIRS     = #-L /usr/local/lib -L/mnt_nfs/home4/instruct/i488/freeglut/src/.libs -L/usr/lib
INCDIRS     = #-I /usr/include -I /usr/local/include/GL -I /usr/include/GL -I/mnt_nfs/home4/instruct/i488/freeglut/include/GL/
LIBS = #-lglut -lGL -lGLU -lm


prog : $(MAIN)
$(MAIN) : 
	$(CC) -o $(MAIN) $(LIBDIRS) $(INCDIRS) *.cpp $(LIBS)
clean:
	rm -f *.o
	rm -f $(MAIN)

test1:
	@echo ""
	@echo "------------------------------------------"
	-- rm $(MAIN)
	$(CC) -o $(MAIN) $(LIBDIRS) $(INCDIRS) *.cpp $(LIBS) $(FLAGS)
	@echo "--------------- RUNNING... ---------------"
	-- ./$(MAIN) $(DEBUG_ARGS)
debug1:
	@echo "--------------------------------------------"
	-- rm $(MAIN)
	$(CC) -o $(MAIN) $(LIBDIRS) $(INCDIRS) *.cpp $(LIBS) $(FLAGS) -g 
	@echo "--------------- DEBUGGING... ---------------"
	-- gdb --args $(MAIN) $(DEBUG_ARGS) 









